package com.shanhy.lixp.need001.service;

import java.io.IOException;
import java.io.UnsupportedEncodingException;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.methods.PostMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 请求HTML页面数据
 *
 * @author   单红宇(365384722)
 * @myblog  http://blog.csdn.net/catoop/
 */
@Component
public class CompanyHtmlRequest {

//	private static final Logger LOG = LoggerFactory.getLogger(RequestCompanyHtml.class);

	// URL
	private String url = "http://ggzy.njzwfw.gov.cn/njggzy/XinYongInfo/DanWei_List.aspx?DanWeiType=17";
	
	@Autowired
	private HttpClient httpClient;
	
//	public static void main(String[] args) {
//		System.out.println(new RequestCompanyHtml().getPageHtml("2"));
//	}
	
	/**
	 * 根据URL请求页面HTML
	 *
	 * @param pageNum	页数，从1开始 
	 * @return
	 * @author SHANHY
	 */
	public String getPageHtml(String pageNum) {
		try {
//			httpClient = new HttpClient();
			
			PostMethod method = new PostMethod(url);
			
			method.addRequestHeader("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
			method.addRequestHeader("Accept-Language","zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4");
			method.addRequestHeader("Cache-Control","max-age=0");
			method.addRequestHeader("Connection","keep-alive");
			method.addRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");
			method.addRequestHeader("Cookie","ASP.NET_SessionId=2ngofc45bbt1qzfge5oc3345");
			method.addRequestHeader("Host","ggzy.njzwfw.gov.cn");
			method.addRequestHeader("Origin","http://ggzy.njzwfw.gov.cn");
			method.addRequestHeader("Referer","http://ggzy.njzwfw.gov.cn/njggzy/XinYongInfo/DanWei_List.aspx?DanWeiType=17");
			method.addRequestHeader("Upgrade-Insecure-Requests","1");
			method.addRequestHeader("User-Agent","Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Saf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hbWVBbGwuYXNweD9EYW5XZWlHdWlkPThlODE4OTRlLWIxNTEtNGZhNi04NzQ3LWVkNDRiYjc4MTM2YiZEYW5XZWlUeXBlPTE3IiB0YXJnZXQ9Il9ibGFuayIgdGl0bGU9Iuaxn+iLj+S5neWkqeW7uuiuvuaciemZkOWFrOWPuCI+5rGf6IuP5Lmd5aSp5bu66K6+5pyJ6ZmQ5YWs5Y+4PC9hPmQCAg9kFgJmDxUBA+WQpmQCAw9kFgJmDxUBrwE8YSBocmVmPSIvbmpnZ3p5Ly4uL25qaHkvSHVpWXVhbkluZm9NaXMyX05hbkppbmcvQmFja0VuZC9GcmFtZUFsbC5hc3B4P0RhbldlaUd1aWQ9OGU4MTg5NGUtYjE1MS00ZmE2LTg3NDctZWQ0NGJiNzgxMzZiJkRhbldlaVR5cGU9MTciIHRhcmdldD0iX2JsYW5rIiB0aXRsZT0i5p+l55yLIj7mn6XnnIs8L2E+ZAIHDw8WCB4LUmVjb3JkY291bnQClEQeDkN1c3RvbUluZm9UZXh0BVvlhbHvvJo8Zm9udCBjb2xvcj0icmVkIj48Yj44NzI0PC9iPjwvZm9udD7mnaEgICDnrKzvvJo8Zm9udCBjb2xvcj0icmVkIj48Yj4zLzU0NjwvYj48L2ZvbnQ+HhBDdXJyZW50UGFnZUluZGV4AgMeCFBhZ2VTaXplAhBkZGSN/RUBbCN70qA4nTZ36MIwzN6IFg==");
			method.addParameter("__VIEWSTATEGENERATOR", "C654BAE4");
			method.addParameter("__EVENTTARGET", "Pager");
			method.addParameter("__EVENTARGUMENT", pageNum);
			method.addParameter("__EVENTVALIDATION", "/wEWAwLs5uCRBAKyxOqYCgKln/PuCvuA7BLaSFjiW6DLGv6aHeecDTi0");
			method.addParameter("txtDanWeiName", "");
			
			httpClient.executeMethod(method);
			method.getParams().setContentCharset("UTF-8");

			String responseBody = method.getResponseBodyAsString();
			
//			LOG.debug(responseBody);
			
			return responseBody;
		} catch (HttpException e) {
			e.printStackTrace();
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}

}
